<template>
	<view class='newsDetail'>
		<view class='conters'>
			<view class="fuwenben" v-html="articleInfo"></view>
			<!-- <jyf-parser :html="articleInfo" ref="article"></jyf-parser> -->
		</view>
		
	</view>

</template>

<script>
	export default{
		data(){
			return {
				articleInfo:{},
				id:'',
				type:'',
				serverSrc:'http://rsfa.zzcyx1688.net/'
			}
		},
		onLoad(e) {
			let that = this
			that.id = e.cid
			that.getData()
		},
		methods: {
			getData(){
				let that = this
				that.tui.request("api.data/chat", "GET", {cid:that.id }, false, false, true).then((res) => {
					that.articleInfo = res.data.info.content
					// let textareaHtml = res.data.info.content;  //从response获取HTML的数据
					// var srcReg = /src=([\'\"]?([^\'\"]*)[\'\"]?)/ig;
					// if(textareaHtml){
					//     textareaHtml = textareaHtml.replace(srcReg,"src='"+this.serverSrc+"$2"+"'");
					//    console.log(textareaHtml)
					// }
				}).catch((res) => {
					
				})
			}
		},
	}
</script>

<style lang="scss">
	page{padding-top: 10rpx;}
	
</style>
<style>
	.fuwenben >>> img{width: 100%;}
</style>